package app.mvp.base_mvp;

import android.view.View;
import android.widget.Button;
import android.widget.Toast;

import app.mvp.MainModel;
import app.mvp.R;

/**
 * Created by 刘智强 on 2017/5/2.
 */

public class TestFragment extends BaseFragment<TestPresenter, TestModel> implements BaseView {
    private Button btn_getdata;

//    @Override
//    public void showData() {
//        MainModel model = presenter.getModel();
//        if (model != null) {
//            Toast.makeText(mActivity, model.getName(), Toast.LENGTH_SHORT).show();
//        }
//    }

    @Override
    public int getLayoutResource() {
        return R.layout.fragment_main;
    }
    @Override
    public void initView() {
        btn_getdata = $(R.id.btn_getdata);

    }

    @Override
    public void initClick(View v) {
        switch (v.getId()) {
            case R.id.btn_getdata:
                break;

            default:
        }

    }

    @Override
    public void initListener() {
        addOnClickListener(R.id.btn_getdata);
    }

    @Override
    public void showMessage(String msg) {

    }

    @Override
    public void updateUi() {

    }


}
